//
//  WFUserModel.m
//  谷居
//
//  Created by dllo on 16/6/17.
//  Copyright © 2016年 刘万方. All rights reserved.
//

#import "WFUserModel.h"

@implementation WFUserModel

- (void)encodeWithCoder:(NSCoder *)aCoder {
//    [aCoder encodeObject:self.designYear forKey:@"designYear"];
//    [aCoder encodeObject:self.realName forKey:@"realName"];
//    [aCoder encodeObject:self.phone forKey:@"phone"];
//    [aCoder encodeInteger:self.userType forKey:@"userType"];
//    [aCoder encodeObject:self.charge forKey:@"charge"];
//    aCoder encodeObject:<#(nullable id)#> forKey:<#(nonnull NSString *)#>
    [aCoder encodeInteger:self.userId forKey:@"userId"];
    [aCoder encodeObject:self.userImage forKey:@"userImage"];
}
- (instancetype)initWithCoder:(NSCoder *)aDecoder {
    self = [super init];
    if (self) {
        self.userId = [aDecoder decodeIntegerForKey:@"userId"];
        self.userImage = [aDecoder decodeObjectForKey:@"userImage"];

    }
    return self;
}

- (void)dealloc {
//    [_designYear release];
//    [_realName release];
//    [_phone release];
//    [_charge release];
//    [_about release];
//    [_province release];
//    [_userName release];
//    [_city release];
//    [_companyName release];
    [_userImage release];
//    [_account release];
    [super dealloc];
}
@end



